﻿using System;
using System.Collections.Generic;
using Wise.TimeWarrior.DTO;
namespace Wise.TimeWarrior.Interfaces
{
    /// <summary>
    /// Interface describe access to local database file, with includes all loged data
    /// </summary>
    public interface IDataStore
    {
        /// <summary>
        /// path to database file
        /// </summary>
        string DataStorePath { set; }
        /// <summary>
        /// Function for saving user events
        /// </summary>
        /// <param name="data">user events</param>
        void SaveData(List<UserEventDto> data);
        /// <summary>
        /// Method retrives user events from specyfied date time range
        /// </summary>
        /// <param name="from">from</param>
        /// <param name="to">to</param>
        /// <returns>user events</returns>
        List<UserEventDto> GetData(DateTime from, DateTime? to);
    }
}
